package com.homework.data0318.work1;

public class MiniBus extends Car {
    @Override
    public void by(){
        super.by();
        System.out.println(name+"正在安全驾驶");
    }


    public static void main(String[] args) {
        MiniBus miniBus = new MiniBus();
        miniBus.setName("小汽车");
        miniBus.setSum(1);
        miniBus.by();
        miniBus.brking();

    }
}
